﻿jQuery.ajaxLinkHandler = function (linkSelector, loadSelector, highlightSelector) {
    $(linkSelector).bind('click', function (event) {
        event.preventDefault();
        $(loadSelector).load($(this).attr('href'), function () {
            $(highlightSelector).effect("highlight", {}, 3000);
            $(linkSelector).unbind('click');
            $.ajaxLinkHandler(linkSelector, loadSelector, highlightSelector);
        });
    });
};